package com.fasteat.menu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fasteat.menu.entity.ReportMessage;
import com.fasteat.menu.entity.ReportType;
import com.fasteat.menu.entity.vo.DisposeReportVo;
import com.fasteat.menu.entity.vo.ReportSearchMap;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author run
 * @since 2021-01-19
 */
public interface ReportService extends IService<ReportType> {

    public boolean createReportMessage(ReportMessage reportMessage);

    public boolean createReportType(ReportType reportType);

    public boolean updateReportMessage(ReportMessage reportMessage);

    public boolean updateReportType(ReportType reportType);

    public boolean deleteReportMessage(String reportMessageId,boolean isAdmin);

    public boolean deleteReportType(String reportTypeId);

    public IPage<ReportMessage> searchReportMessage(ReportSearchMap searchMap, Integer page, Integer size, boolean isAdmin);

    public List<ReportMessage> searchReportMessage(ReportSearchMap searchMap, boolean isAdmin);

    public List<ReportType> searchReportType();

    public boolean disposeReport(DisposeReportVo disposeReportVo);

}
